package com.sright.bcard.content.dal.dao.impl;

import com.sright.bcard.common.service.share.base.dao.BaseDAOImpl;
import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.content.dal.dao.CardSettingDAO;
import com.sright.bcard.content.dal.entity.CardSettingDO;
import com.sright.bcard.content.dal.mapper.CardSettingDOMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class CardSettingDAOImpl extends BaseDAOImpl<CardSettingDO> implements CardSettingDAO {

    @Resource
    private CardSettingDOMapper cardSettingDOMapper;

    @Override
    protected BaseMapper<CardSettingDO> getObjMapper() {
        return cardSettingDOMapper;
    }

    @Override
    public CardSettingDO selectByUserId(Long userId) {
        return cardSettingDOMapper.selectByUserId(userId);
    }
}
